const aqcs = [
  "设备内的介质已排空（监护人）",
  "对设备进行吹扫，置换合格（监护人）",
  "设备的进出口阀门关闭，并已加盲板断开（监护人）",
  "清槽作业时液位必须低于排渣孔（监护人）",
  "人孔附近无障碍物（监护人）",
  "正确穿戴劳动防护用品（监护人）",
  "作业时，有监护人员到场（监护人）",
  "监护人员熟悉应急处理、救护方法（监护人）",
  "无法完全清除易燃易爆介质时，需开人孔作业，必须使用防爆工具，并采取相应的安全措施。（监护人）",
];

let formOptions = [
  {
    label: "作业申请部门",
    optionItems: [],
    prop: "jobApplyCompany",
    type: "input",
    required: true,
  },
  {
    label: "申请人",
    optionItems: [],
    prop: "sqr",
    type: "input",
    required: true,
  },
  {
    label: "作业单位",
    optionItems: [],
    prop: "zydw",
    type: "input",
    required: true,
  },
  {
    label: "作业单位负责人",
    optionItems: [],
    prop: "zydwfzr",
    type: "input",
    required: true,
  },
  {
    label: "作业地点",
    optionItems: [],
    prop: "local",
    type: "input",
    required: true,
  },
  {
    label: "开孔设备名称",
    optionItems: [],
    prop: "kksbmc",
    type: "input",
    required: true,
  },
  {
    label: "监护人（作业单位）",
    optionItems: [],
    prop: "jhr",
    type: "zyry",
    required: false,
  },
  {
    label: "作业时间",
    optionItems: [],
    prop: "jobDate",
    type: "datetimerange",
    required: true,
  },
  {
    label: "作业人员",
    optionItems: [],
    prop: "zyry",
    type: "zyry",
    required: true,
    multiple: true,
  },
  {
    label: "作业原因",
    optionItems: [],
    prop: "zyyy",
    type: "input",
    required: true,
  },

  {
    label: "风险辨识结果",
    optionItems: [
      {
        value: "物体打击",
        text: "物体打击",
      },
      {
        value: "机械伤害",
        text: "机械伤害",
      },
      {
        value: "起重伤害",
        text: "起重伤害",
      },
      {
        value: "触电",
        text: "触电",
      },
      {
        value: "火灾",
        text: "火灾",
      },
      {
        value: "高处坠落",
        text: "高处坠落",
      },

      {
        value: "灼烫",
        text: "灼烫",
      },

      {
        value: "其他爆炸",
        text: "其他爆炸",
      },
      {
        value: "中毒窒息",
        text: "中毒窒息",
      },

      {
        value: "其他风险",
        text: "其他风险",
      },
    ],
    prop: "risk",
    type: "checkbox",
    required: false,
  },
];
aqcs.forEach((item, index) => {
  formOptions.push({
    label: `${index + 1}.${item}`,
    optionItems: [
      {
        value: "是",
        text: "涉及",
      },
      {
        value: "否",
        text: "不涉及",
      },
    ],
    prop: `yesOrNo${index + 1}`,
    type: "labelradio",
    required: false,
  });
  // formOptions.push({
  //   label: "电子签名",
  //   optionItems: [],
  //   type: "slot",
  //   // prop: `qianming${index + 1}`,
  //   prop: `qianming1`,
  // });
});
formOptions = [
  ...formOptions,
  {
    label: "其他安全措施",
    optionItems: [],
    prop: "qtaqcs",
    type: "qtaqcs",
    multiple: true,
    required: false,
  },
  {
    label: "编制人",
    optionItems: [],
    prop: "bzr",
    type: "input",
    required: false,
  },
];

const longLabelSlots = [
  "yesOrNo1",
  "yesOrNo2",
  "yesOrNo3",
  "yesOrNo4",
  "yesOrNo5",
  "yesOrNo6",
  "yesOrNo7",
  "yesOrNo8",
  "yesOrNo9",
  "yesOrNo10",
  "yesOrNo11",
  "yesOrNo12",
  "yesOrNo13",
  "yesOrNo14",
  "yesOrNo15",
];

const emptys = [
  "qianming1",
  "yjqm1",
  "yjqm2",
  "yjqm3",
  "yjqm4",
  "qianmingDt1",
  "qianmingDt2",
  "qianmingDt3",
  "qianmingDt4",
  "aqjdr",
  "jsjdr",
  "jsjdr2",
  "jsjdr3",
  "bmjhr",
  "fhjhr",
  "otherqm",
  "jobApplyDate",
  "jobDate",
  "glqtzyp",
];
const options = {
  formOptions,
  longLabelSlots,
  emptys,
};
export default options;
